<?php
if($_COOKIE[job_user_id]){
echo "<script>location='/member/';</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人会员登录-三帝招聘网</title>
<link href="../css/body.css" rel="stylesheet" type="text/css"/>
<link href="../css/link.css" rel="stylesheet" type="text/css"/>
<link href="css/head.css" rel="stylesheet" type="text/css"/>
<link href="../css/foot.css" rel="stylesheet" type="text/css"/>
<link href="css/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("../inc/top.php");?>
<div class="main topside6 downside6">

<div class="login_box">
<div class="title">
  <table border="0" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td width="43" rowspan="2"><img src="images/icon1.gif" width="35" height="36" /></td>
      <td width="186" height="27"><img src="images/icon1txt.gif" width="76" height="20" /></td>
    </tr>
    <tr>
      <td height="20"> &nbsp;<span class="fontblue">&nbsp;</span><span class="fontgray">欢迎您再次登录三帝招聘网</span> </td>
    </tr>
  </table>
</div>
<div class="login">
  <form method="post" action="/login.php" onsubmit="return checklogin()">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="26" colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td width="37%" height="44" align="right"><span class="size14 b">用户：</span></td>
        <td width="63%"><label>
          <input name="logUserName" type="text" class="login_user" id="logUserName" />
        </label></td>
      </tr>
      <tr>
        <td height="43" align="right"><span class="size14 b">密码：</span></td>
        <td height="43"><label>
          <input name="logPassword" type="password" class="login_pwd" id="logPassword" />
        </label></td>
      </tr>
      <tr>
        <td height="43" align="right"><span class="size14 b">验证码：</span></td>
        <td height="43"><input name="c_code" id="c_code" type="text" class="login_code" />&nbsp;&nbsp;<img src="/inc/chk_num.php" name="img" height="30" border="0" align="absmiddle" id="img"/>&nbsp;&nbsp;<a href="#" name="test" id="test">刷新验证码</a></td>
      </tr>
      <tr>
	  	<td height="43"  align="left">&nbsp;</td>
        <td height="33"  align="left"><label>
          <input name="Submit" type="submit" class="but" value=" 用户登录 " />
         　  
         <input name="Submit2" type="submit" class="but" value="用户重写" />
        </label></td>
      </tr>
      <tr>
        <td height="43"  align="left">&nbsp;</td>
		<td height="33"  align="left"><a href="../reg">个人注册</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="zhao.php">找回密码？</a></td>
      </tr>
    </table>
    </form>
  </div>
</div>
</div>
<?php include("../inc/foot.php"); ?>
</body>
</html>
<script language="javascript">
function $(id){
   return document.getElementById(id);
}
function checklogin(){
   if($("logUserName").value==""){
   alert("用户名不能为空");
   $("logUserName").focus();
   return false;
   }
   if($("logPassword").value==""){
   alert("密码不能为空");
   $("logPassword").focus();
   return false;
   }
   if($("c_code").value==""){
   alert("验证码不能为空");
   $("c_code").focus();
   return false;
   }
}
function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="test";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>